How to identify whether an attribute is module scope or object scope attribute?

Hello,

Can anyone tell me how to identify whether an attribute is module scope or object scope using DXL? Is there any direct method or way which tells us that this is module scope or Object scope attribute.

Thanks in advance


Mayur Chaudhari - Sat Feb 03 02:37:07 EST 2018

Re: How to identify whether an attribute is module scope or object scope attribute?
PekkaMakinen - Sat Feb 03 06:24:41 EST 2018

See the AttrDef properties module and object in your copy of the DXL Reference

if (ad.object)

{

 // Object attribute

}

Re: How to identify whether an attribute is module scope or object scope attribute?
Mike.Scharnow - Sat Feb 03 09:06:46 EST 2018

just one addition:

remember that attributes can be of module scope, of object scope or both!

So, in addition to ask "if (ad.object)", you might also want to ask "if (ad.module)", depending on your needs...